﻿using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Vecen.BangChuang.Migrations
{
    public partial class ProductSchool : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder) {
            migrationBuilder.AddColumn<string>("ShowForUserTypes", table: "Promotions",nullable:true);
            migrationBuilder.AddColumn<decimal>(
                name: "TeamBonus",
                table: "Promotions",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "CollegeName",
                table: "Products",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "TeamBonus",
                table: "Products",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<string>(
                name: "UniversityName",
                table: "Products",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "TeamBonus",
                table: "Promotions");

            migrationBuilder.DropColumn(
                name: "CollegeName",
                table: "Products");

            migrationBuilder.DropColumn(
                name: "TeamBonus",
                table: "Products");

            migrationBuilder.DropColumn(
                name: "UniversityName",
                table: "Products");
        }
    }
}
